package mianxiangduixiang.ClassExam;


import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class TestList {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        int[] intValue = {1, 2, 3, 4, 5};
        for (int i : intValue) {
            list.add((Integer) i);
        }
//        for (Object i:list) {
//            System.out.print(i+"");
//        }
        Iterator it = list.iterator();
        while (it.hasNext()) {
            System.out.println(it.next());
        }
    }
}
